typedef struct AVFrame {
    uint8_t *data[4];
} AVFrame;

typedef struct video_profile
{
    unsigned int bit_rate;
    unsigned int width;   //length per dma buffer
    unsigned int height;
    unsigned int framerate;
    unsigned int frame_rate_base;
    unsigned int gop_size;
    unsigned int qmax;
    unsigned int qmin;   
    unsigned int quant;
    unsigned int fmjpeg_image_quality;
    unsigned int u32RestartInterval;
    unsigned int fmjpeg_jpeg;
    unsigned int fmjpeg_yuv_format;
    unsigned int YUV_2D;	
    int roi_enable;
    unsigned int roi_left_x;
    unsigned int roi_left_y;
    unsigned int roi_right_x;
    unsigned int roi_right_y;	
    AVFrame *coded_frame;
} video_profile;

#define ROI_LEFT_X 		0
#define ROI_LEFT_Y 		0
#define ROI_RIGHT_X 		720
#define ROI_RIGHT_Y 		480
